package com.xjzp.business.db.hibernate.po.base;

import java.io.Serializable;


/**
 * This is an object that contains data related to the tb_fb_b table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="tb_fb_b"
 */

public abstract class BaseTbFbB  implements Serializable {

	public static String REF = "TbFbB";
	public static String PROP_ALLOWBINSTR5 = "Allowbinstr5";
	public static String PROP_ALLOWBINSTR2 = "Allowbinstr2";
	public static String PROP_FREQUENCY = "Frequency";
	public static String PROP_SUB2 = "Sub2";
	public static String PROP_YEAR = "Year";
	public static String PROP_SUBJECT_ID = "SubjectId";
	public static String PROP_ALLOWBINSTR1 = "Allowbinstr1";
	public static String PROP_SUB1 = "Sub1";
	public static String PROP_ITEM_ID = "ItemId";
	public static String PROP_ID = "Id";
	public static String PROP_ALLOWBINSTR4 = "Allowbinstr4";
	public static String PROP_ALLOWBINSTR3 = "Allowbinstr3";


	// constructors
	public BaseTbFbB () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseTbFbB (java.lang.Integer id) {
		this.setId(id);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.Integer id;

	// fields
	private java.lang.String year;
	private java.lang.Integer subjectId;
	private java.lang.Integer frequency;
	private java.lang.Integer itemId;
	private java.lang.String allowbinstr1;
	private java.lang.String allowbinstr2;
	private java.lang.String allowbinstr3;
	private java.lang.String allowbinstr4;
	private java.lang.String allowbinstr5;
	private java.lang.Integer sub1;
	private java.lang.String sub2;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="increment"
     *  column="id"
     */
	public java.lang.Integer getId () {
		return id;
	}

	/**
	 * Set the unique identifier of this class
	 * @param id the new ID
	 */
	public void setId (java.lang.Integer id) {
		this.id = id;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: year
	 */
	public java.lang.String getYear () {
		return year;
	}

	/**
	 * Set the value related to the column: year
	 * @param year the year value
	 */
	public void setYear (java.lang.String year) {
		this.year = year;
	}



	/**
	 * Return the value associated with the column: subject_id
	 */
	public java.lang.Integer getSubjectId () {
		return subjectId;
	}

	/**
	 * Set the value related to the column: subject_id
	 * @param subjectId the subject_id value
	 */
	public void setSubjectId (java.lang.Integer subjectId) {
		this.subjectId = subjectId;
	}



	/**
	 * Return the value associated with the column: frequency
	 */
	public java.lang.Integer getFrequency () {
		return frequency;
	}

	/**
	 * Set the value related to the column: frequency
	 * @param frequency the frequency value
	 */
	public void setFrequency (java.lang.Integer frequency) {
		this.frequency = frequency;
	}



	/**
	 * Return the value associated with the column: item_id
	 */
	public java.lang.Integer getItemId () {
		return itemId;
	}

	/**
	 * Set the value related to the column: item_id
	 * @param itemId the item_id value
	 */
	public void setItemId (java.lang.Integer itemId) {
		this.itemId = itemId;
	}



	/**
	 * Return the value associated with the column: allowbinstr1
	 */
	public java.lang.String getAllowbinstr1 () {
		return allowbinstr1;
	}

	/**
	 * Set the value related to the column: allowbinstr1
	 * @param allowbinstr1 the allowbinstr1 value
	 */
	public void setAllowbinstr1 (java.lang.String allowbinstr1) {
		this.allowbinstr1 = allowbinstr1;
	}



	/**
	 * Return the value associated with the column: allowbinstr2
	 */
	public java.lang.String getAllowbinstr2 () {
		return allowbinstr2;
	}

	/**
	 * Set the value related to the column: allowbinstr2
	 * @param allowbinstr2 the allowbinstr2 value
	 */
	public void setAllowbinstr2 (java.lang.String allowbinstr2) {
		this.allowbinstr2 = allowbinstr2;
	}



	/**
	 * Return the value associated with the column: allowbinstr3
	 */
	public java.lang.String getAllowbinstr3 () {
		return allowbinstr3;
	}

	/**
	 * Set the value related to the column: allowbinstr3
	 * @param allowbinstr3 the allowbinstr3 value
	 */
	public void setAllowbinstr3 (java.lang.String allowbinstr3) {
		this.allowbinstr3 = allowbinstr3;
	}



	/**
	 * Return the value associated with the column: allowbinstr4
	 */
	public java.lang.String getAllowbinstr4 () {
		return allowbinstr4;
	}

	/**
	 * Set the value related to the column: allowbinstr4
	 * @param allowbinstr4 the allowbinstr4 value
	 */
	public void setAllowbinstr4 (java.lang.String allowbinstr4) {
		this.allowbinstr4 = allowbinstr4;
	}



	/**
	 * Return the value associated with the column: allowbinstr5
	 */
	public java.lang.String getAllowbinstr5 () {
		return allowbinstr5;
	}

	/**
	 * Set the value related to the column: allowbinstr5
	 * @param allowbinstr5 the allowbinstr5 value
	 */
	public void setAllowbinstr5 (java.lang.String allowbinstr5) {
		this.allowbinstr5 = allowbinstr5;
	}



	/**
	 * Return the value associated with the column: sub_1
	 */
	public java.lang.Integer getSub1 () {
		return sub1;
	}

	/**
	 * Set the value related to the column: sub_1
	 * @param sub1 the sub_1 value
	 */
	public void setSub1 (java.lang.Integer sub1) {
		this.sub1 = sub1;
	}



	/**
	 * Return the value associated with the column: sub_2
	 */
	public java.lang.String getSub2 () {
		return sub2;
	}

	/**
	 * Set the value related to the column: sub_2
	 * @param sub2 the sub_2 value
	 */
	public void setSub2 (java.lang.String sub2) {
		this.sub2 = sub2;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.xjzp.business.db.hibernate.po.TbFbB)) return false;
		else {
			com.xjzp.business.db.hibernate.po.TbFbB tbFbB = (com.xjzp.business.db.hibernate.po.TbFbB) obj;
			if (null == this.getId() || null == tbFbB.getId()) return false;
			else return (this.getId().equals(tbFbB.getId()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getId()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}